package com.geek.javase.ch02.test2;

/*
 *@author wangpeng
 *2025/10/10 13:14
 *@description TODO
 */
public class ClassMain {
    public static void main(String[] args) {
        // 构造GrandFather类的对象并显示详细信息
        GrandFather grandfather = new GrandFather("牛爷爷", 70);
        grandfather.getGrandFather();

        // 构造Father类的对象并显示详细信息
        Father father = new Father("胡巴巴", 45, "领导");
        father.getFather();
    }
}